how to find the first five terms of a geometric sequence